<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script type="text/javascript">
    var nums=[1,5,8,23,8,4,3,89,3];
    var test = function(item){};
    nums.filter(test);
    nums.filter(function(item){});
    var n=nums.reduce((pre,item)=>{return pre+item;});
    console.log(nums);
    console.log(n);
    var d = new Date();
    console.log(d);
    var name="zhangsan";
    var str = "hello "+name;
    str = `hello 
    ${name}`
    console.log(str);
  </script>
</head>
<body>
  <input type="button" value="点我" id="dianwo"/>
  <table border="1" align="center" id="mytable">
    <tr>
      <td><input type="checkbox" id="all" onchange="checkAll(this)"/></td>
      <td>编号</td><td>商品名</td><td>价格</td><td>操作</td></tr>
    <tr>
      <td><input type="checkbox" name="trdata" onclick="checkItem()"/></td>
      <td>1</td><td>su7</td><td>￥21</td><td><a href="javascript:void(0)" onclick="deletePro(this)">删除</a></td></tr>
    <tr>
      <td><input type="checkbox" name="trdata" onclick="checkItem()"/></td>
      <td>2</td><td>model Y</td><td>￥35</td><td><a>删除</a></td></tr>
  </table>
  <input type="button" onclick="addPro()" value="新增"/>
</body>
</html>